<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="d" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>${applicationScope.projectName}</title>
    <!-- 通用文件 -->
    <link href="base/css/base.css" type="text/css" rel="stylesheet"/>
    <script src="base/jquery/jquery.js" type="text/javascript"></script>
    
    <!-- 格式化用户输入for -->
    <link href="${applicationScope.skin.form}" type="text/css" rel="stylesheet"/>
    <script src="base/js/form.js" type="text/javascript"></script>
    
    <!-- 格式化displaytag显示样式 -->
    <link href="${applicationScope.skin.displaytag}" type="text/css" rel="stylesheet"/>
    <script src="base/js/displaytag.js" type="text/javascript"></script>
    
	<!-- jquery date_input -->
	<link href="base/jquery/jquery-plugin/dateinput/jquery.dateinput.css" type="text/css" rel="stylesheet">
    <script src="base/jquery/jquery-plugin/dateinput/jquery.dateinput.js" type="text/javascript"></script>
    <script src="base/jquery/jquery-plugin/dateinput/jquery.dateinput.zh_CN.js" type="text/javascript"></script>
    
    <!-- jquery alerts -->
    <link href="base/jquery/jquery-plugin/alerts/jquery.alerts.css" type="text/css" rel="stylesheet" />
	<script src="base/jquery/jquery-plugin/alerts/jquery.alerts.js" type="text/javascript"></script>
    
    <!-- 只在本页用的脚本 -->
	<script src="system/js/department.js" type="text/javascript"></script>
  </head>
  
  <body>
  	
  	<form action="pageAction!listPageForMySQL.ac" method="post">
		<input type="hidden" name="sqlId" value="2"/>
		<input type="hidden" name="paramTotal" value="3"/>
		<input type="hidden" name="forwardUrl" value="system/department.jsp"/>
		<table class="formTable">
				<thead><tr class="title"><th colspan="2" title="点击此处可(折叠/展开)左边栏">部门管理</th></tr></thead>
				<tbody>
					<tr>
						<td align="right" width="80">开始日期:</td>
						<td>
							<input type="text" id="startDate" name="_param0" value="${_param0}" class="date_input" />&nbsp;&nbsp;
							结束日期:<input type="text" id="endDate" name="_param1" value="${_param1}" class="date_input" />&nbsp;&nbsp;
							名称:<input type="text" id="departmentName" name="_param2" value="${_param2}" />&nbsp;&nbsp;
							<input type="submit" value="查询" />&nbsp;&nbsp;
							<input id="addDepartment" type="button" value="添加" />
						</td>
					</tr>
				</tbody>
		</table>
	</form>
  	
  	<d:table id="rs" name="resultList" class="disTable" requestURI="pageAction!listPageForMySQL.ac">
  		<d:column property="id" title="ID"></d:column>
  		<d:column property="name" title="名称"></d:column>
  		<d:column property="operator" title="创建人"></d:column>
  		<d:column property="create_date_time" title="创建时间"></d:column>
  		<d:column property="update_date_time" title="修改时间"></d:column>
  		<d:column title="操作">
  			<a class="update" href="#">更新</a>&nbsp;&nbsp;
  			<c:choose>
  				<c:when test="${pageScope.rs.id == 2}">删除</c:when>
  				<c:when test="${pageScope.rs.id != 2}"><a class="delete" href="#">删除</a></c:when>
  			</c:choose>
  		</d:column>
  	</d:table>
  </body>
</html>
